<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
	String path = request.getContextPath();

	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<title><s:message code="M_6100_BIS_PATH_MANAGEMENT_TAG" /></title>
	<%@ include file="/page/comPage/comCSS.html"%>
	<%@ include file="/page/comPage/navbar.html"%>
</head>
<body>
<div class="container-fluid">
	<div class="col-sm-12 btnDivCss">
		<button class="btn btn-info" id="query_btn"><s:message code="QUERY_TAG"/></button>
		<button class="btn btn-primary" id="add_btn"><s:message code="ADD_TAG"/></button>
		<button class="btn btn-warning" id="update_btn"><s:message code="UPDATE_TAG"/></button>
		<button class="btn btn-primary" id="copy_btn"><s:message code="COPY_TAG"/></button>
		<button class="btn btn-danger" id="delete_btn"><s:message code="DELETE_TAG"/></button>
		<button class="btn btn-success" id="save_btn"><s:message code="SAVE_TAG"/></button>
		<button class="btn btn-warning" id="rollback_btn"><s:message code="ROLLBACK_TAG"/></button>
		<button class="btn btn-primary" id="clear_btn"><s:message code="CLEAR_TAG"/></button>
		<button class="btn btn-primary" id="ok_btn"><s:message code="PATH_OK_TAG"/></button>
		<button class="btn btn-primary" id="hold_btn"><s:message code="PATH_HOLD_TAG"/></button>
	</div>
	<div class="col-sm-4 UnderDiv leftDiv" id="divLeft">
		<fieldset>
			<legend><s:message code="PATH_LIST_TAG"/></legend>
		</fieldset>
		<div id="pathListDiv" class="col-sm-12">
			<table id="pathListGrd" style="height: 1px"></table>
			<div id="pathListPg"></div>
		</div>
	</div>
	<div class="col-sm-8 rightDiv">
		<div class="col-sm-12 rightDivUp">
			<fieldset>
				<legend><s:message code="PATH_INFO_TAG"/></legend>
			</fieldset>
			<form id="pathConditionForm" class="col-sm-12 form-horizontal">
				<div class="form-group col-sm-6">
					<label class="control-label col-sm-6 keyCss" for="pathIDTxt">
						<s:message code="PATH_ID_TAG"/>
					</label>
					<div class="col-sm-6">
						<input type="text" id="pathIDTxt" class="form-control"  maxlength="8"/>
					</div>
				</div>
				<div class="form-group col-sm-6">
					<label class="control-label col-sm-6 keyCss" for="pathDscTxt">
						<s:message code="PATH_DSC_TAG"/>
					</label>
					<div class="col-sm-6">
						<input type="text" id="pathDscTxt" class="form-control" />
					</div>
				</div>
				<div class="form-group col-sm-6">
					<label class="control-label col-sm-6 keyCss" for="pathCateSel">
						<s:message code="PATH_CATE_TAG"/>
					</label>
					<div class="col-sm-6">
						<select id="pathCateSel" class="form-control" style="width: 100%"></select>
					</div>
				</div>
				<div class="form-group col-sm-6">
					<label class="control-label col-sm-6" for="holdFlag">
						<s:message code="PATH_STAT_TAG"/>
					</label>
					<div class="col-sm-6">
						<input type="text" id="holdFlag" class="form-control" />
					</div>
				</div>
			</form>
		</div>
		<div class="col-sm-12 rightDivDown" id="divRight">
			<fieldset>
				<legend><s:message code="PATH_OPE_INFO_TAG"/></legend>
			</fieldset>
			<div class="col-sm-12 btnDivCss">
				<button class="btn btn-primary" id="add_pathItem_btn"><s:message code="ADD_TAG"/></button>
				<button class="btn btn-warning" id="upd_pathItem_btn"><s:message code="UPDATE_TAG"/></button>
				<button class="btn btn-danger" id="del_pathItem_btn"><s:message code="DELETE_TAG"/></button>
				<button class="btn btn-primary " id="branch_pathItem_btn"><s:message code="BRANCH_BTN_TAG"/></button>
				<span class="label label-warning">对工艺路线的所有更改都要==>保存</span>
			</div>
			<div id="pathItemListDiv" class="col-sm-12">
				<table id="pathItemListGrd" style="height: 1px;"></table>
				<div id="pathItemListPg"></div>
			</div>
		</div>
	</div>
</div>

<!-- 查询对话框 -->
<div id="queryPathDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="QUERY_CONDITION_TAG"/>
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<div class="row">
					<form id="queryPathDialog_mdlDefForm" class="row form-horizontal">
						<div class="control-group ">
							<label class="control-label col-xs-4" for="queryPathDialog_pathCateTxt">
								<s:message code="PATH_CATE_TAG"/>
							</label>
							<div class="col-xs-5">
								<select id="queryPathDialog_pathCateTxt" class="form-control" style="width:100%;"></select>
							</div>
						</div>
						<div class="control-group ">
							<label class="control-label col-xs-4" for="queryPathDialog_pathIDTxt">
								<s:message code="PATH_ID_TAG"/>
							</label>
							<div class="col-xs-5">
								<input id="queryPathDialog_pathIDTxt" class="form-control">
							</div>
						</div>
					</form>
				</div>
			</div>
			<div class="modal-footer">
				<a id="queryPathDialog_cancelBtn" class="btn" data-dismiss="modal"><s:message code="CANCEL_TAG" />
				</a> <a id="queryPathDialog_queryBtn" class="btn btn-primary"><s:message code="QUERY_TAG" />
			</a>
			</div>
		</div>
	</div>
</div>

<!-- 添加或修改path子项目-->
<div id="pathItemDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					新增或修改
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="dialogPathItemForm" class="row form-horizontal">
					<div class="control-group">
						<label class="control-label col-sm-4 keyCss" for="pathItemDialog_crOpeNOTxt"><s:message code="OPE_NO_TAG" />
						</label>
						<div class="col-sm-5 col-md-5 col-sm-5">
							<input type="text" id="pathItemDialog_crOpeNOTxt" class="form-control" maxlength="6"
								   onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label col-sm-4 col-md-4 col-sm-4 keyCss" for="pathItemDialog_crOpeIDSel"><s:message code="OPE_ID_TAG" />
						</label>
						<div class="col-sm-5 col-md-5 col-sm-5">
							<select id="pathItemDialog_crOpeIDSel" class="form-control" style="width: 100%;"></select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label col-sm-4 col-md-4 col-sm-4" for="pathItemDialog_crOpeIDSel"> skip flag
						</label>
						<div class="col-sm-5 col-md-5 col-sm-5">
							<select id="pathItemDialog_skipFlgSel" class="form-control" style="width: 100%;">
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label col-sm-4 col-md-4 col-sm-4" for="inlineCheckboxes">选择项</label>
						<div class="col-sm-3 col-md-3 col-sm-3">
							<label class="checkbox-inline"> <input type="checkbox" id="pathItemDialog_swhAvlFlgChk" value="option1">
								<s:message code="SWH_AVL_FLG_TAG" />
							</label>
						</div>
					</div>
				</form>
				<!-- </div> -->
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="pathItemDialog_cancelBtn" class="btn" data-dismiss="modal"><s:message code="CANCEL_TAG" />
				</a> <a id="pathItemDialog_savePathItemBtn" class="btn btn-primary"><s:message code="COMMIT_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

<!-- 添加分支工艺项目-->
<div id="branchPathDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div id="branchPathModalDialog" class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					新增或修改
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<form class="form-horizontal row">
					<div class="col-sm-5">
						<div class="control-group col-sm-12">
							<label class="control-label col-sm-4 keyCss" for="fr_path_id_fk"> 工艺线路</label>
							<div class="col-sm-8">
								<input type="text" id="fr_path_id_fk" class="form-control" />
							</div>
						</div>
						<div class="control-group col-sm-12">
							<label class="control-label col-sm-4 keyCss" for="fr_ope_no_fk"> 转入站点</label>
							<div class="col-sm-8">
								<select id="fr_ope_no_fk" class="form-control" style="width: 100%;"/></select>
							</div>
						</div>
						<div class="control-group col-sm-12 pathInput">
							<label class="control-label col-sm-4 keyCss" for="swh_id"> 分支号</label>
							<div class="col-sm-8">
								<input type="text" id="swh_id" class="form-control" />
							</div>
						</div>
						<div class="control-group col-sm-12 pathInput">
							<label class="control-label col-sm-4 keyCss" for="swh_path_id_fk"> 分支工艺</label>
							<div class="col-sm-8">
								<select id="swh_path_id_fk" class="form-control" style="width: 100%;"/></select>
							</div>
						</div>
						<div class="control-group col-sm-12 pathInput">
							<label class="control-label col-sm-4 keyCss" for="swh_dsc"> 工艺描述</label>
							<div class="col-sm-8">
								<input type="text" id="swh_dsc" class="form-control"  />
							</div>
						</div>
						<div class="control-group col-sm-12 pathInput">
							<label class="control-label col-sm-4 keyCss" for="out_ope_no_fk"> 转出站点</label>
							<div class="col-sm-8">
								<select id="out_ope_no_fk" class="form-control" style="width: 100%;"/></select>
							</div>
						</div>
					</div>
					<div class="col-sm-7">
						<button class="btn btn-danger" id="branchPathDialog_del_branchItem_btn">删除</button>
						<button class="btn btn-info" id="refreshGrid">刷新</button>
						<div id="branchPathListDiv" class="row">
							<table id="branchPathListGrd"></table>
							<div id="branchPathListPg"></div>
						</div>
					</div>
				</form>
			</div>
			<!--Modal body-->
			<div class="modal-footer">

				<a id="branchPathDialog_add_branchItem_btn" class="btn btn-primary left"> 新增
				</a> <a id="branchPathDialog_branch_regist_btn" class="btn btn-success left"> 登记
			</a> <a id="branchPathDialog_cancelBtn" class="btn left" data-dismiss="modal"> 关闭 </a>

			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

<!-- 添加分支工艺项目-->
<div id="branchItemDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					新增或修改
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="dialogBranchItemForm" class="row form-horizontal">
					<div class="control-group">
						<label class="control-label col-lg-4" for="branchItemDialog_swhIDTxt"> 站点序号
						</label>
						<div class="col-lg-5">
							<input type="text" id="branchItemDialog_swhIDTxt" class="form-control" />
						</div>
					</div>
					<div class="control-group">
						<label class="control-label col-lg-4 col-md-4 col-sm-4" for="branchItemDialog_swhPathIDSel"> 站点代码
						</label>
						<div class="col-lg-5 col-md-5 col-sm-5">
							<select id="branchItemDialog_swhPathIDSel" class="form-control" style="width: 100%;"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-lg-4 col-md-4 col-sm-4" for="branchItemDialog_swhPathVerSel"> 站点版本
						</label>
						<div class="col-lg-5 col-md-5 col-sm-5">
							<select id="branchItemDialog_swhPathVerSel" class="form-control" style="width: 100%;"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-lg-4 col-md-4 col-sm-4" for="branchItemDialog_swhDscTxt"> 站点版本
						</label>
						<div class="col-lg-5 col-md-5 col-sm-5">
							<select id="branchItemDialog_swhDscTxt" class="form-control" style="width: 100%;"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-lg-4 col-md-4 col-sm-4" for="branchItemDialog_outOpeNoTxt"> 站点版本
						</label>
						<div class="col-lg-5 col-md-5 col-sm-5">
							<select id="branchItemDialog_outOpeNoTxt" class="form-control" style="width: 100%;"></select>
						</div>
					</div>

				</form>
				<!-- </div> -->
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="branchItemDialog_cancelBtn" class="btn" data-dismiss="modal"> 取消
				</a> <a id="branchItemDialog_saveItemBtn" class="btn btn-primary"> 更新提交
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>
</body>

<%@ include file="/page/comPage/comJS.html"%>
<script type="text/javascript" src="js/page/6000/6100.js"></script>

</html>